from ..interface import Job, JobDoneUpdateModel, JobRunTimesUpdateModel, JobStore


class MemoryStore(JobStore):
    """本地内存任务存储实现"""
    def add(self, job: Job):
        return super().add(job)

    def update_run_times(self, m: JobRunTimesUpdateModel):
        return super().update_run_times(m)
    
    def done(self, m: JobDoneUpdateModel):
        print(m.__dict__)